<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    {:token()}
    <!-- <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Ismenu')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[ismenu]', ['1'=>__('Yes'), '0'=>__('No')])}
        </div>
    </div> -->
    <div class="form-group">
        <label for="c-real_name" class="control-label col-xs-12 col-sm-2">{:__('Realname')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-real_name" data-rule="required" class="form-control" name="row[real_name]" type="text" >
        </div>
    </div>
    <div class="form-group">
        <label for="c-status" class="control-label col-xs-12 col-sm-2">{:__('Role')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[role]', ['0'=>'普通用户','1'=>'会员'])}
        </div>
    </div>
    <div class="form-group">
        <label for="c-status" class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[status]', ['1'=>__('Status 1'), '0'=>__('Status 0')])}
        </div>
    </div>
    <div class="form-group">
        <label for="c-mobile" class="control-label col-xs-12 col-sm-2">{:__('Mobile')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-mobile" data-rule="required"  class="form-control" name="row[mobile]" type="text" >
        </div>
    </div>

    
    {if !empty($company_id)}
        <input id="c-c_id" name="row[c_id]" type="hidden" value="{$company_id}" >
    {else/}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">公司组织:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-c_id"   data-rule="required" data-source="jskmsg/company/index"  class="form-control selectpage" name="row[c_id]" type="text" >
        </div>
    </div>
    {/if}
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
